package com.wjq.registration.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wjq.registration.entity.Record;
import com.wjq.registration.mapper.RecordMapper;
import com.wjq.registration.service.IRecordService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wjq
 * @since 2020-06-09
 */
@Service
public class RecordServiceImpl extends ServiceImpl<RecordMapper, Record> implements IRecordService {

    @Override
    public IPage<Record> findAll(Page<Record> page, Record r) {
        return baseMapper.findAll(page,r);
    }

    @Override
    public List<Record> findByName(String key) {
        return baseMapper.findByName(key);
    }
}
